package com.uni.dto;

import java.util.Date;

import com.uni.common.util.SystemConfig;

import lombok.Data;
import lombok.NoArgsConstructor;

/**
 *  代办订单已补证件
 * @author yuyanzheng
 *
 */
@NoArgsConstructor
@Data
public class AgentOrderAttachDTO {
	private Long id;
	private Long userId;
	private Long agentOrderId;
	private String frontPic;
	private String backPic;
	private Date updateTime;
	private Date createTime;
	
	public String getFrontPicAll() {
		if(frontPic != null && !frontPic.equals("") && !frontPic.startsWith("http")) {
			return SystemConfig.basePath + frontPic;
		}
		return frontPic;
	}
	
	public String getBackPicAll() {
		if(backPic != null && !backPic.equals("") && !backPic.startsWith("http")) {
			return SystemConfig.basePath + backPic;
		}
		return backPic;
	}
}
